<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../semantic/dist/semantic.min.css">
    <title>semantic-ui-shape</title>
    <style>

    </style>
</head>

<body>

    <div class="ui container">
        <div class="ui dividing header">Shape</div>

        <div class="ui shape">
            <div class="sides">
                <div class="side active">
                    <div class="ui pink card">
                        <div class="image">
                            <img src="https://semantic-ui.com/images/avatar/large/stevie.jpg" alt="">
                        </div>
                        <div class="content">
                            <div class="header">女人</div>
                            <div class="meta">
                                <span>women</span>
                                <div class="description">我是一个女人</div>
                            </div>
                        </div>
                        <div class="extra content">
                            <div class="left floated">
                                <i class="like icon"></i>喜欢
                            </div>
                            <div class="right floated">
                                <i class="user icon"></i>好友
                            </div>
                        </div>
                    </div>
                </div>
                <div class="side">
                    <div class="ui pink card">
                        <div class="image">
                            <img src="https://semantic-ui.com/images/avatar/large/ade.jpg" alt="">
                        </div>
                        <div class="content">
                            <div class="header">女人</div>
                            <div class="meta">
                                <span>women</span>
                                <div class="description">我是一个女人</div>
                            </div>
                        </div>
                        <div class="extra content">
                            <div class="left floated">
                                <i class="like icon"></i>喜欢
                            </div>
                            <div class="right floated">
                                <i class="user icon"></i>好友
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>




    <script src="../node_modules/jquery/dist/jquery.min.js"></script>
    <script src="../semantic/dist/semantic.min.js"></script>
    <script>
    var action = ['flip up', 'flip down', 'flip left', 'flip right', 'flip over', 'flip back']
    setInterval(function(){
        var num = parseInt(Math.random()*7);
        var shapeString = action[num];
        $('.shape').shape(shapeString);
    }, 3000)
    </script>
</body>

</html>
